package com.example.waibao.service;

import com.example.waibao.entity.*;
import com.github.pagehelper.PageInfo;

import java.util.Date;
import java.util.List;

public interface UserService {
    List<authority> get_all_authority();


    void delete_student(int userId);

    student get_a_student(int userId);

    void add_teacher(User user);

    PageInfo<User> get_users(Integer pageNum, Integer pageSize,int status,int school_id,String nick_name);

    List<school> get_school();

    void solve_users(Long id);

    void delete_users(Long id);

    PageInfo<student> get_all_student(Integer pageNum, Integer pageSize, int schoolId, String name);

    void set_student_authority(int userId);

    void school_register(school school);

   // void set_speciality(int schoolId, String s);
   void set_speciality(a_speciality speciality);
    void set_user_authority(int userId);

    List<a_speciality> get_speciality(int schoolId);

    void set_speciality_rank(int id, Date date1, int schoolId);

    void update_a_user(User user);

    String check_password(User user);

    boolean check_username_reappear(String userName, int schoolId);

    boolean check_school_reappear(String name);

    void delete_student_authority(int userId);

    void delete_user_authority(int userId);

    void delete_speciality(int schoolId);

    void delete_speciality_rank(int schoolId);

    void update_speciality(a_speciality speciality);


    void add_a_admin(User user);

    void set_authority(Long id);

    void set_sys_authority(int userId, int roleId);

    void update_user_type(int userId, int roleId);

    String check_head_have(int s);

    int get_a_school_id(int id2);

    void delete_student_faq(int userId);
}
